<?php

namespace app\admin\validate;

use think\Validate;

class Purchase extends Validate
{

     protected $rule =   [
        
        'color'=>'require',
        'sku'=>'require',
        'num'=>'require',
        'admin_id'=>'require',
        'apply_status'=>'require',
        'product_id'=>'require',
        'apply_type'=>'require',
        'batch'=>'require',
        'apply_time'=>'require',   
    ];

    protected $scene = [
        'edit'  =>  [],
    ]; 
}